<!DOCTYPE html>
<html>
<title>数值的使用</title>

<body>

    <script>
        //基础的就不写了 写点不一样的
        //除了加法其他都可以
        let x = "50";
        let y = "10";
        let a = x / y;
        document.write(a + "<br>");
        let b = x % "11";
        document.write(b + "<br>");
        let c = "10" * "11";
        document.write(c + "<br>");
        let d = "2" ** "3";
        document.write(d + "<br>");
        document.write(Infinity + "<br>");
        document.write(0xff + "<br>");
        document.write("二进制1101  :" + 0b1101 + "<br>");
        document.write("八进制13  :" + 016 + "<br>");
        document.write("以及各种进制" + "<br><hr>");
        let num = 255;
        document.write("255的2进制:" + num.toString(2) + "<br>");
        document.write("255的8进制:" + num.toString(8) + "<br>");
        document.write("255的16进制:" + num.toString(16) + "<br>");
        document.write("255的32进制:" + num.toString(32) + "<br>");
    </script>

</body>

</html>